<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class FeedbackContent extends Validate
{
    protected $rule = [
        'title'   => 'require',
        'status' => ['require', 'in' => '1,2,3'],
    ];

    protected $message = [
        'name.require' => '请输入留言标题',
        'status'       => '请选择正确的状态',
    ];

    protected $scene = [
        'title'  => ['title', 'status'],
        'edit' => ['status']
    ];
}
